Repository navigation
Conversation
The short ID in the issue stream sits a little high next to the project avatar. Rubik's line box is balanced for mixed case text, so all-caps IDs end up above center. Trimming the text box to cap height lines the letters up with the avatar. overflow: hidden would clip the tops of the letters now that the box is only cap height, so this clips horizontally only and keeps the ellipsis. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Sentry Snapshot Testing
|
natemoo-re
reviewed
Nov 23, 2026
Comment on lines
+32
to
+36
| /* Center the cap height on the avatar instead of Rubik's lopsided line box */ | ||
| text-box: trim-both cap alphabetic; | ||
| /* Only clip horizontally so glyphs can paint past the trimmed box */ | ||
| overflow-x: clip; | ||
| min-width: 0; |
Member
There was a problem hiding this comment.
You could also move to Text from @sentry/scraps/text which sets text-box trim by default 😉
Swap the hand rolled text-box styles for Text. Adds trim="cap" to Text, which trims to the cap height and baseline, and only clips sideways with ellipsis so nothing below the baseline gets cut off. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Story previewsPreview the stories changed in this PR on the Vercel deployment: Preview deployment: https://sentry-jk1s8vhhj.sentry.dev |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The short ID in the issue stream sits a little high next to the project avatar. Rubik's line box is balanced for mixed case, so all-caps text ends up above center. This switches the ID to
Textand addstrim="cap", which trims to the cap height so the letters center on the avatar. Withellipsisit only clips sideways so nothing gets cut off.Same
Textchange is in #132284, which uses it for the issue header.red line is the vertical center
old font, before #130701
new font, from #130701
new font + text-box trim